<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title><%- myname %> 的电影评论</title>
    <%- include common %>
    <style>
        .mv-result{
            margin-top:20px;
            box-sizing: border-box;
            padding:0 10px;
        }
        .item-box{
            border-bottom:1px solid #666;
            margin-bottom:10px;
        }
        .box-one{
            display: flex;
            justify-content: space-between;
        }
    </style>
</head>
<body>
    <%- include('head',{title:'comment',username:username })%>
    <div class="container">
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-6">
                    <h2 class="text-success text-center" > 评论人: <%- myname %> </h2>
                    <button class="btn btn-warning" onclick="history.go(-1)">返回</button>
                </div>
                <div class="col-md-6">
                    <h2 class="text-primary text-center" >  当前用户的评论</h2>
                 <%    result.forEach((item,idx)=>{  %>
                         <div class="item-box">
                            <div class="box-one text-primary">
                                <p><%- item.movie.title %> </p>
                                <p><%- forMat(item.time) %> </p>
                            </div>
                            <div>
                                <p>标题:</p>
                                <p class="text-danger"><%- item.title %> </p>
                            </div>
                            <div class="text-success">
                                <p>内容:</p>
                                <p><%- item.content %> </p>
                            </div>
                         </div>
                  <%   })   %>
                </div> 
            </div>  
        </div>
    </div>


    <%- include foot %>

    <script>
        
    </script>
</body>
</html>